import request from '../utils/request'

export function loginApi(loginInfo)
{
  return request.post(`/login`, loginInfo)
}

// 修改密码
export function changePasswordApi(name, newPassword)
{
  return request.put(`/login/changePassword?username=${name}&newPassword=${newPassword}`)
}